package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TypeRequest", description = "门店、仓库类型请求对象")
public class TypeRequest extends PageParamRequest {

    @ApiModelProperty(value = "类型(1仓库  2门店)")
    @NotNull(message = "类型不能为空")
    @Range(min = 1, max = 2, message = "未知的类型")
    private Integer type;
}
